package riven.club.utils;

/**
 * 请求方式
 *
 * @author fred
 * @date 2021-01-20 13:42
 */
public class BaseConstant {

    private BaseConstant() {
    }

    /**
     * 基本常量
     */
    public static final String POST = "POST";
    public static final String GET = "GET";
    public static final String PUT = "PUT";
    public static final String DOWNLOAD_POST = "DOWNLOAD_POST";
    public static final String DOWNLOAD_GET = "DOWNLOAD_GET";
    public final static String CHARSET_UTF8 = "UTF-8";

    public static final String WEIXIN_API_URL = "https://api.weixin.qq.com/";
    public static final String WEIXIN_MP_URL = "https://mp.weixin.qq.com/";

    public static final String ACCESS_TOKEN = "access_token";
    public static final String COMPONENT_TOKEN = "component_access_token";

    /**
     * 请求成功返回码
     */
    public static final int RETURN_SUCCESS_CODE = 0;

    /**
     * 默认的http post application/json 请求体
     */
    public static final String DEFAULT_POST_BODY = "{}";

    /**
     * 上传时form文件变量名称
     */
    public static final String FORM_MEDIA = "media";
}
